// @ts-ignore
import { request } from '@/request/request';

/**
 * 获取储值订单套餐.
 * @param data
 */
export const getRechargePackages = (data:any): Promise<any> => {
    return request({ url: '/recharge/packages', data, method: 'GET' })
}

/**
 * 发起充值.
 * @param data
 */
export const recharge = (data:any): Promise<any> => {
    return request({ url: '/recharge/recharge', data, method: 'POST' })
}

/**
 * 获取余额交易明细.
 * @param data
 */
export const getDetailed = (data:any): Promise<any> => {
    return request({ url: '/recharge/detailed', data, method: 'GET' })
}
